﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_MyBackBillList.aspx.cs" Inherits="SaleSystem.Business.frm_MyBackBillList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>进货管理</title>
</head>
<body>
<form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1">
        <Items>
            <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click" ></ext:Button>
            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>           
        </Items>    
    </ext:Toolbar> 
    <ext:Form runat="server" ID="Form2" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false" >
        <Rows>
            <ext:FormRow>
            <Items>
            <ext:TextBox runat="server" ID="tb_MBB_Code" Label="返货单号" Width="200px" TabIndex="1"></ext:TextBox>
                    <ext:DropDownList runat="server" ID="ddl_MBB_Supp_Id" Label="供应商" Width="200px"  DataValueField="Supp_Id" DataTextField="Supp_Name" TabIndex="2"></ext:DropDownList>   
                    
                    </Items>
            </ext:FormRow>
            <ext:FormRow>
             <Items> 
                    <ext:DatePicker runat="server" ID="dp_MBB_Date1"  Label="返货日期>=" Width="200px" TabIndex="3"></ext:DatePicker>                    
                    <ext:DatePicker runat="server" ID="dp_MBB_Date2" Label="返货日期<=" Width="200px" TabIndex="4"></ext:DatePicker>                    
                    </Items>
            </ext:FormRow>
                  <ext:FormRow>
             <Items>
                    <ext:NumberBox runat="server" ID="nb_MBB_Money1" Label="总额>="  Width="200px" TabIndex="5"></ext:NumberBox>                
                    <ext:NumberBox runat="server" ID="nb_MBB_Money2" Label="总额<="  Width="200px" TabIndex="6"></ext:NumberBox>                
                    </Items>
            </ext:FormRow> 
            <ext:FormRow>
             <Items>
                    
                    <ext:DropDownList runat="server" ID="ddl_MBB_Output"  Label="出库状态" Width="200px" TabIndex="8">
                        <ext:ListItem Text="-未选择-" Value="-1" Selected="true" />
                        <ext:ListItem Text="未出库" Value="0" />
                        <ext:ListItem Text="已出库" Value="1"  />
                    </ext:DropDownList>          
                            <ext:DropDownList runat="server" ID="ddl_MBB_State"  Label="结算状态" Width="200px" TabIndex="8">
                        <ext:ListItem Text="-未选择-" Value="-1" Selected="true" />
                        <ext:ListItem Text="未结算" Value="0" />
                        <ext:ListItem Text="已结算" Value="1"  />
                    </ext:DropDownList>   
             </Items>
            </ext:FormRow> 
                        <ext:FormRow>
             <Items> 
                     <ext:DropDownList runat="server" ID="ddl_MBB_SUser_Id" Label="经办人" Width="200px" DataValueField="SUser_Id" DataTextField="SUser_Name" TabIndex="7"></ext:DropDownList>   
             </Items>
            </ext:FormRow> 
        </Rows>
    </ext:Form>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="返货单列表"   IsDatabasePaging="true" DataKeyNames="MBB_Id,MBB_Code" EnableRowNumber="true" onrowcommand="gv_List_RowCommand" AllowPaging="true" onpageindexchange="gv_List_PageIndexChange"  AutoHeight="true" OnPreRowDataBound="gv_List_PreRowDataBound">
    <Columns>
        <ext:BoundField ColumnID="MBB_Code" DataField="MBB_Code" DataTooltipField="MBB_Code" HeaderText="返货单号" Width="100px" />
        <ext:BoundField ColumnID="BBill_Supp_Id" DataField="Supp_Name" DataTooltipField="Supp_Name" HeaderText="供应商"   Width="150px"/>
       
        <ext:TemplateField HeaderText="返货日期">
                <ItemTemplate>                
                    <%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "MBB_Date").ToString()).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </ext:TemplateField>
        <ext:BoundField ColumnID="MBB_Money" DataField="MBB_Money" DataTooltipField="MBB_Money" HeaderText="总额" Width="80px"/> 
        <ext:BoundField ColumnID="SUser_Name" DataField="SUser_Name" DataTooltipField="SUser_Name" HeaderText="经办人" Width="80px"/>
         <ext:CheckBoxField DataTooltipField="MBB_Output" Width="60px" RenderAsStaticField="true"  DataField="MBB_Output" HeaderText="是否出库" />
         <ext:CheckBoxField DataTooltipField="MBB_State" Width="60px" RenderAsStaticField="true"  DataField="MBB_State" HeaderText="是否结算" />
        <ext:LinkButtonField ColumnID="edit" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="60px" />           
        <ext:LinkButtonField ColumnID="delete" CommandName="Delete"  ConfirmIcon="Question"  ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px"/>
    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"  EnableConfirmOnClose="true" Title="新增供应商" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="800px" Height="600px" EnableMaximize="true"></ext:Window>
    </form>
</body>
</html>